package service

import (
	"ck-go-test/models"
)

type User struct {
	ID string
}

func (r *User) GetName() (string, error) {
	u, err := models.GetUser(r.ID)
	if nil != err {
		return "", err
	}
	return u.Name, nil
}
